Skip to content

Upgrade from Java 17 to Java 21#187

Open
devin-ai-integration[bot] wants to merge 1 commit intoDevOpsfrom
devin/1777546211-java-21-upgrade
Open

Upgrade from Java 17 to Java 21#187
devin-ai-integration[bot] wants to merge 1 commit intoDevOpsfrom
devin/1777546211-java-21-upgrade

Conversation

@devin-ai-integration
Copy link
Copy Markdown

@devin-ai-integration devin-ai-integration Bot commented Apr 30, 2026

Summary

Upgrades the entire project from Java 17 to Java 21 across build config, container images, and documentation.

Changes

  • pom.xml: java.version 17 → 21; maven-compiler-plugin updated to 3.13.0 with source/target 21 (was 1.8)
  • Dockerfile: Builder image → maven:3.9-eclipse-temurin-21-alpine; Runtime image → eclipse-temurin:21-jre-alpine
  • README.md & README-K8S.md: Jenkins JRE install updated from openjdk-17-jre to openjdk-21-jre
  • Jenkinsfile: No changes needed — pipeline uses shared library functions with no direct Java version references
  • docker-compose.yml: No changes needed — no Java version references present

Build verified locally with mvn clean install -DskipTests using Java 21.

Review & Testing Checklist for Human

  • Verify mvn clean install -DskipTests succeeds with JDK 21
  • Verify docker build -t bankapp:java21 . builds successfully
  • Confirm Jenkins shared library stages work with the updated Docker images

Notes

  • The maven-compiler-plugin was previously at version 3.8.0 with source/target 1.8, which was inconsistent with the java.version property of 17. Both have been aligned to 21.
  • The Dockerfile now uses Eclipse Temurin (Adoptium) images instead of the deprecated openjdk images.

Link to Devin session: https://app.devin.ai/sessions/cf5ce8a1ee674c319f28c1de91efe73d
Requested by: @joao-cognition


Devin Review

Status Commit
⚪ Not started

💡 Connect your GitHub account to enable automatic code reviews.

Open in Devin Review (Staging)

- Update pom.xml java.version from 17 to 21
- Update maven-compiler-plugin to 3.13.0 with source/target 21
- Update Dockerfile builder image to maven:3.9-eclipse-temurin-21-alpine
- Update Dockerfile runtime image to eclipse-temurin:21-jre-alpine
- Update README.md and README-K8S.md Jenkins JRE from openjdk-17 to openjdk-21

Co-Authored-By: Joao Esteves <joao.esteves@cognition.ai>
@devin-ai-integration
Copy link
Copy Markdown
Author

🤖 Devin AI Engineer

I'll be helping with this pull request! Here's what you should know:

✅ I will automatically:

  • Address comments on this PR. Add '(aside)' to your comment to have me ignore it.
  • Look at CI failures and help fix them

Note: I can only respond to comments from users who have write access to this repository.

⚙️ Control Options:

  • Disable automatic comment and CI monitoring

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

0 participants